package com.two.lbms.dao;

import com.two.lbms.base.BaseMapper;
import com.two.lbms.vo.BookInfo;
import com.two.lbms.vo.CollectionList;
import java.util.List;
import java.util.Map;

import com.two.lbms.xhz.dto.CollectionDTO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.context.annotation.Primary;

/**
 * @author hjx
 * @version V1.0
 * @Date 2023/7/28 20:21
 */
@Mapper
public interface CollectionListMapper extends BaseMapper<CollectionList, Integer> {

    Integer deleteByPrimaryKey(Integer id);

    Integer insert(CollectionList record);

    Integer insertSelective(CollectionList record);

    CollectionList selectByPrimaryKey(Integer id);

    Integer updateByPrimaryKeySelective(CollectionList record);

    Integer updateByPrimaryKey(CollectionList record);

    Integer updateBatch(List<CollectionList> list);

    CollectionDTO selectByParams(String bookName);

    int updateBookCount(CollectionList collectionList);

    CollectionList selectByBookId(Integer bookId);

    CollectionDTO selectById(Integer id);

    Integer selectBookCount();
}